/**
 * Created by Jone on 2016/7/9.
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var UserSchema = new Schema({
    email: {type: String, unique: true},
    password: String,
    phone: String,
    createAt:{type: Date, default: Date.now}, //创建时间
    updateAt: {type: Date, default: Date.now} //更新时间
});
exports.User = mongoose.model('User', UserSchema);